﻿@model FILSTARTUPS_MOBILE.Models.ProfilePage

@{
    ViewBag.Title = "Index";
    Layout = "~/Views/Shared/_Layout.cshtml";
}


@section Nav
{
  @foreach (var nav in Model.PageNav)
    {
        <li><a href="../Home/Page?pageidPK=@nav.pageidPK&pagename=@nav.pagename">@nav.pagename</a></li>
    }
}


<img  width="150" height="150"  src="@Url.Action("ProfilePicture", "Profile", new { id=Model.profile.profileidPK })" alt="@Model.profile.filename" />

<fieldset>
    <legend>Profile</legend>

    <div class="display-label">
      <b>  @Html.LabelFor(model => model.profile.firstname)</b>
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.profile.firstname)
    </div>

    <div class="display-label">
       <b> @Html.LabelFor(model => model.profile.lastname)</b>
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.profile.lastname)
    </div>

    <div class="display-label">
      <b>  @Html.LabelFor(model => model.profile.middlename)</b>
    </div>

    <div class="display-field">
        @Html.DisplayFor(model => model.profile.middlename)
    </div>

    <div class="display-label">
      <b>  @Html.LabelFor(model => model.profile.birthdate)</b>
    </div>

    <div class="display-field">
        @Html.DisplayFor(model => model.profile.birthdate)
    </div>


    
    <div class="display-label">
      <b>Age</b>
    </div>

    <div class="display-field">
        @ViewBag.Age
    </div>


    <div class="display-label">
      <b>  @Html.LabelFor(model => model.profile.gender)</b>
    </div>

    <div class="display-field">
        @Html.DisplayFor(model => model.profile.gender)
    </div>

    <div class="display-label"> 
      <b> @Html.LabelFor(model => model.profile.activitiesAndinterest)</b>
    </div>

    <div class="display-field">
        @Html.DisplayFor(model => model.profile.activitiesAndinterest)
    </div>


</fieldset>
<p>
    @Html.ActionLink("Edit", "EditProfile", new { id=Model.profile.profileidPK }) |
    @Html.ActionLink("Change Password", "ChangePassword", new { id=Model.profile.profileidPK })
</p>
